<template>
    <div>
        <van-nav-bar title="商品列表" left-text="返回" left-arrow @click-left="() => { $router.push('/home/fl') }" fixed />
        <div style="height: 45px;"></div>

        <div v-for="item in goods">
            <van-card :title="item.cat_name"
                thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" />

        </div>
    </div>
</template>

<script setup>
import { ref } from 'vue'
import {goodsApi} from '@/api/api'
let good = ref([])
goodsApi().then(res => {
    console.log('列表', res)
    good.value = res.data.message
})
</script>

<style lang="scss" scoped></style>